package io.kubernetes.client.openapi.models;

import java.lang.Deprecated;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class V1NFSVolumeSourceFluentImpl<A extends io.kubernetes.client.openapi.models.V1NFSVolumeSourceFluent<A>> extends io.kubernetes.client.fluent.BaseFluent<A> implements io.kubernetes.client.openapi.models.V1NFSVolumeSourceFluent<A> {

    private java.lang.String path;
    private java.lang.Boolean readOnly;
    private java.lang.String server;

    public V1NFSVolumeSourceFluentImpl() {
    }

    public V1NFSVolumeSourceFluentImpl(io.kubernetes.client.openapi.models.V1NFSVolumeSource instance) {
        this.withPath(instance.getPath());
        
        this.withReadOnly(instance.getReadOnly());
        
        this.withServer(instance.getServer());
    }

    public java.lang.String getPath() {
        return this.path;
    }

    public A withPath(java.lang.String path) {
        this.path=path; return (A) this;
    }

    public java.lang.Boolean hasPath() {
        return this.path != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withPath instead.
     */
        public A withNewPath(java.lang.String original) {
        return (A)withPath(new String(original));
    }

    public java.lang.Boolean getReadOnly() {
        return this.readOnly;
    }

    public A withReadOnly(java.lang.Boolean readOnly) {
        this.readOnly=readOnly; return (A) this;
    }

    public java.lang.Boolean hasReadOnly() {
        return this.readOnly != null;
    }

    public java.lang.String getServer() {
        return this.server;
    }

    public A withServer(java.lang.String server) {
        this.server=server; return (A) this;
    }

    public java.lang.Boolean hasServer() {
        return this.server != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withServer instead.
     */
        public A withNewServer(java.lang.String original) {
        return (A)withServer(new String(original));
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        V1NFSVolumeSourceFluentImpl that = (V1NFSVolumeSourceFluentImpl) o;
        if (path != null ? !path.equals(that.path) :that.path != null) return false;
        if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false;
        if (server != null ? !server.equals(that.server) :that.server != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(path,  readOnly,  server,  super.hashCode());
    }

}
